package com.chongbangbang.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 用户帖子的图片地址
 * </p>
 *
 * @author TP
 * @since 2022-03-19 15:23:55
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("blog_picture_ref")
@ApiModel(value = "BlogPictureRef对象", description = "用户帖子的图片地址")
public class BlogPictureRef implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("blog_picture_ref的自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("对应blog表主键id")
    @TableField("blog_id")
    private Integer blogId;

    @ApiModelProperty("picture的url")
    @TableField("url")
    private String url;

    @ApiModelProperty("图片顺序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("逻辑删除")
    @TableField("`delete`")
    @TableLogic
    private Boolean delete;
}
